﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001129 RID: 4393
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAssistAvatarCsReq : IMessage<SetAssistAvatarCsReq>, IMessage, IEquatable<SetAssistAvatarCsReq>, IDeepCloneable<SetAssistAvatarCsReq>, IBufferMessage
	{
		// Token: 0x170037A6 RID: 14246
		// (get) Token: 0x0600C49F RID: 50335 RVA: 0x002138A8 File Offset: 0x00211AA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAssistAvatarCsReq> Parser
		{
			get
			{
				return SetAssistAvatarCsReq._parser;
			}
		}

		// Token: 0x170037A7 RID: 14247
		// (get) Token: 0x0600C4A0 RID: 50336 RVA: 0x002138AF File Offset: 0x00211AAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAssistAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037A8 RID: 14248
		// (get) Token: 0x0600C4A1 RID: 50337 RVA: 0x002138C1 File Offset: 0x00211AC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAssistAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x0600C4A2 RID: 50338 RVA: 0x002138C8 File Offset: 0x00211AC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarCsReq()
		{
		}

		// Token: 0x0600C4A3 RID: 50339 RVA: 0x002138DB File Offset: 0x00211ADB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarCsReq(SetAssistAvatarCsReq other) : this()
		{
			this.avatarIdList_ = other.avatarIdList_.Clone();
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C4A4 RID: 50340 RVA: 0x00213911 File Offset: 0x00211B11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAssistAvatarCsReq Clone()
		{
			return new SetAssistAvatarCsReq(this);
		}

		// Token: 0x170037A9 RID: 14249
		// (get) Token: 0x0600C4A5 RID: 50341 RVA: 0x00213919 File Offset: 0x00211B19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarIdList
		{
			get
			{
				return this.avatarIdList_;
			}
		}

		// Token: 0x170037AA RID: 14250
		// (get) Token: 0x0600C4A6 RID: 50342 RVA: 0x00213921 File Offset: 0x00211B21
		// (set) Token: 0x0600C4A7 RID: 50343 RVA: 0x00213929 File Offset: 0x00211B29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600C4A8 RID: 50344 RVA: 0x00213932 File Offset: 0x00211B32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAssistAvatarCsReq);
		}

		// Token: 0x0600C4A9 RID: 50345 RVA: 0x00213940 File Offset: 0x00211B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAssistAvatarCsReq other)
		{
			return other != null && (other == this || (this.avatarIdList_.Equals(other.avatarIdList_) && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C4AA RID: 50346 RVA: 0x00213990 File Offset: 0x00211B90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.avatarIdList_.GetHashCode();
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C4AB RID: 50347 RVA: 0x002139DD File Offset: 0x00211BDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C4AC RID: 50348 RVA: 0x002139E5 File Offset: 0x00211BE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C4AD RID: 50349 RVA: 0x002139F0 File Offset: 0x00211BF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AvatarId);
			}
			this.avatarIdList_.WriteTo(ref output, SetAssistAvatarCsReq._repeated_avatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C4AE RID: 50350 RVA: 0x00213A40 File Offset: 0x00211C40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.avatarIdList_.CalculateSize(SetAssistAvatarCsReq._repeated_avatarIdList_codec);
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C4AF RID: 50351 RVA: 0x00213A94 File Offset: 0x00211C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAssistAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.avatarIdList_.Add(other.avatarIdList_);
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C4B0 RID: 50352 RVA: 0x00213AE1 File Offset: 0x00211CE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C4B1 RID: 50353 RVA: 0x00213AEC File Offset: 0x00211CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 88U && num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.avatarIdList_.AddEntriesFrom(ref input, SetAssistAvatarCsReq._repeated_avatarIdList_codec);
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F46 RID: 20294
		private static readonly MessageParser<SetAssistAvatarCsReq> _parser = new MessageParser<SetAssistAvatarCsReq>(() => new SetAssistAvatarCsReq());

		// Token: 0x04004F47 RID: 20295
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F48 RID: 20296
		public const int AvatarIdListFieldNumber = 11;

		// Token: 0x04004F49 RID: 20297
		private static readonly FieldCodec<uint> _repeated_avatarIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04004F4A RID: 20298
		private readonly RepeatedField<uint> avatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04004F4B RID: 20299
		public const int AvatarIdFieldNumber = 7;

		// Token: 0x04004F4C RID: 20300
		private uint avatarId_;
	}
}
